import axios from './http'
import Qs from 'qs'


const user={
    SigIn(params){
        // return axios.post('/user/login/', params )
        return axios({
            url: '/api/user/login/',
            method: 'post',
            data: Qs.stringify(params),
            headers:{
                'Content-Type':'application/x-www-form-urlencoded'
            }
        })
    },
    SignUp(params){
        // return axios.post('/user/register/', params)
        return axios({
            url: '/api/user/register/',
            method: 'post',
            data: Qs.stringify(params),
            headers:{
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    }
}
export default user